home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Aminet 28
/
Aminet 28 (1998)(GTI - Schatztruhe)[!][Dec 1998].iso
/
Aminet
/
dev
/
amos
/
AMOSList-0998.lzh
/
AMOSLIST
/
000023_bounce-amos-li…net@onelist.com_Wed Sep 2 05:27:27 1998.msg
< prev
next >
Wrap
Text File
|
1998-10-01
|
6KB
|
162 lines
>From bounce-amos-list--882-mcox=access.digex.net@onelist.com Wed Sep 2 05:27:27 1998
Received: from onelist.com (pop.onelist.com [209.207.135.253])
by pony-1.mail.digex.net (8.8.8/8.8.8) with SMTP id FAA06769
for <mcox@access.digex.net>; Wed, 2 Sep 1998 05:27:27 -0400 (EDT)
Received: (qmail 31557 invoked by alias); 2 Sep 1998 09:24:57 -0000
Received: (qmail 31460 invoked from network); 2 Sep 1998 09:24:54 -0000
Received: from unknown (HELO neodymium.btinternet.com) (194.73.73.83) by pop.onelist.com with SMTP; 2 Sep 1998 09:24:54 -0000
Received: from np5gt [195.99.56.103] by neodymium.btinternet.com with smtp (Exim 1.70 #1) id 0zE9B3-0002n0-00; Wed, 2 Sep 1998 10:26:10 +0100
Message-ID: <003d01bdd653$c7d50ce0$673863c3@np5gt>
From: "John Glanville" <John.Glanville@btinternet.com>
To: <amos-list@onelist.com>
Date: Wed, 2 Sep 1998 10:26:33 +0100
X-Priority: 3
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook Express 4.72.3110.1
X-MimeOLE: Produced By Microsoft MimeOLE V4.72.3110.3
Mailing-List: list amos-list@onelist.com; contact http://www.onelist.com
Delivered-To: mailing list amos-list@onelist.com
Precedence: bulk
Reply-to: amos-list@onelist.com
Mime-Version: 1.0
Content-Type: text/plain; charset="iso-8859-1"
Content-Transfer-Encoding: 7bit
Subject: [amos-list] Re: Hey! Ne1 Like Joysticks?
Status: O
X-Status:
From: "John Glanville" <John.Glanville@btinternet.com>
-----Original Message-----
From: Andrew Crowe <andrewcrowe@enterprise.net>
To: amos-list@onelist.com <amos-list@onelist.com>
Date: 02 September 1998 01:19
Subject: [amos-list] Re: Hey! Ne1 Like Joysticks?
>From: Andrew Crowe <andrewcrowe@enterprise.net>
>
>Hi Everybody,
>
>> Hey! Look! At this Ne1 want a piece of code that turns the joystick
>input 2 + or -..
>
>Hmm, this seemed a bit too complicated, so I decided to check it out
>(and I managed to kill 5mins at the same time ;)
>
>I built a timing loop to test the 2 versions :
>
>'different way
>Timer=0
>For A=0 To 100000
> J=Joy(1)
> K=J-2
> P#=J/4.0
> P=P#
> I=Sgn(J)
> If P#=P
> X=Sgn(J-6)*I
> End If
> If P=0
> Y=I*(K+K+1)
> End If
>Next
>Print Timer
>
>
>' Old way
>Timer=0
>For A=0 To 100000
> X=0 : Y=0
> If Jup(1)
> Y=-1
> End If
> If Jdown(1)
> Y=1
> End If
> If Jleft(1)
> X=-1
> End If
> If Jright(1)
> X=1
> End If
>Next
>Print Timer
>
>before compiling the Old way was a lot faster, but after compiling it
>was a lot closer:
>
>no joystick movement
>
>Old:155
>New:143
>
>Holding down on joystick
>Old:154
>New:193
>
>Although new is quicker when there's no joy activ. it slows down when
>the joystick is pressed.
>
>But, 50vbl out of 100000 loops isn't going to make a lot of difference
>anyway so you may as well just use whichever you prefer.
>
>
>--
> <PRE>
> - --------------------- Quote of the day: ---------------------- -
>It is better to have tried and failed than to have failed to try, but
>the result's the same.
>-- Mike Dennison
>
>+--------------------------------------------------------------------+
>| ,aNNN |
>| a& NL ,a, ,gNNNNN |
>| @7L d 0 ,a,,aw ,a,, JN Q, ,a,,aw,,,, ,gNM"`NN' |
>| J 9w" K N" "" NN"""""WF ~3&N" "" N ""^N" NF |
>| N , " , Nd ,@M, NN JML @ML d@N ,@4, N ', JK |
>|d JMc dN N NN NN 0 1 1J1 0 0 NN N L,K |
>|N,N 0w' Na@h,,a,,NQ,0 &J1J&,0 \,,a,,N JF |
>| "" " ~" ""~"""~"" "" """ t""~""" j"1 |
>| F JgmJ ,gm |
>| F N" N ,, F ,N gNN |
>| Andrew Crowe Q jJF mP p""9w,NL NwmP 0mw |
>| ~~~~~~~~~~~~ ] / I 0 F@ am, Nw ,0& ,N |
>| Manta Soft ,F\ a' ,N Nf L E 0 0ML N""N 0" |
>| ~~~~~~~~~~ ,N \, ,P N@" JF & `@" NJL N N 0 |
>| ,N ad" \wam" `Nx,aN JNmN NmN |
>| NN ,,gN" ""PP" |
>| dNNNNN" |
>| NNN@" Web Designing and // |
>| Visit our Web Site: "" Amiga Programming \\// |
>| |
>| HTTP://www.geocities.com/Eureka/Gold/1713/ |
>| |
>+----------------------------+ This signature was created using |
>| andrewcrowe@enterprise.net | AsciiArt Studio |
>+----------------------------+---------------------------------------+
> </PRE>
>
>
>------------------------------------------------------------------------
>Help support ONElist, while generating interest in your product or
>service. ONElist has a variety of advertising packages. Visit
>http://www.onelist.com/advert.html for more information.
>
Hey! I never said it would be fast... I only said it got rid of annoyingly
slow if statements
but hey! I dodn't care i was bored so i set myself a problem and i solved
it... also if U R going for a Small program The new version is alot
smaller.... especially if u r trying 2 program the smallest good Tron
ever!!!! thats me!
Bye Thanx 4 de Speed test!
------------------------------------------------------------------------
Help support ONElist, while generating interest in your product or
service. ONElist has a variety of advertising packages. Visit
http://www.onelist.com/advert.html for more information.